package com.laulkar.dataproviders;

import java.io.Serializable;

import android.os.Parcel;
import android.os.Parcelable;

public class Subway implements Serializable, Parcelable{

	/**
	 * 
	 */
	private static final long serialVersionUID = -7915979031282303910L;
	public String line;
	public String status;
	public String text;
	public int icon_res;
	public int icon_res_unselected;

	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}

	public String getLine() {
		return line;
	}

	public void setLine(String line) {
		this.line = line;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public Subway()
	{

	}

	public Subway(String line)
	{
		this.line = line;
	}

	public Subway(String line, String status)
	{
		this.line = line;
		this.status = status;
	}

	@Override
	public int describeContents() {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeString(line);
		dest.writeString(status);
		dest.writeString(text);

	}

	public static final Parcelable.Creator<Subway> CREATOR
	= new Parcelable.Creator<Subway>() {
		public Subway createFromParcel(Parcel in) {
			return new Subway(in);
		}

		public Subway[] newArray(int size) {
			return new Subway[size];
		}
	};

	 private Subway(Parcel in) {
		 
		 //in.readParcelable(loader);
         line = in.readString();
         status = in.readString();
         text = in.readString();
     }

}
